POV-Ray : Newsgroups : povray.binaries.programming : POV Memory : Re: POV Memory Server Time
30 Apr 2024 01:22:57 EDT (-0400)
  Re: POV Memory  
From: Early Ehlinger
Date: 29 Apr 2003 18:38:56
Message: <3eaeff00$1@news.povray.org>
"Christopher James Huff" <chr### [at] maccom> wrote:
> The only way to tell if part of the scene will be visible is to parse
> it. If you haven't parsed an object you have no information about it to
> judge visibility from. Some kind of progressive parsing where you parse
> some information, determine visibility, and conditionally continue
> parsing would be possible, but speedup would be minimal, and the
> description language would be barely human readable. The result would
> probably be much slower because of the work for determining if the
> object affects the final image.

You could do a bounding-sphere at the beginning of each element.  The parser
could then scan past the element quickly by checking open and close braces.
It would store the center and radius of the element.  Determining if the
element needs to be checked for ray collision is then simply a matter of
comparing the distance from the center of the bounding-sphere to the ray
with the radius of the bounding-sphere.  If it needs to be checked, the
parser would go back and read the entire element.

--
-- Early Ehlinger CEO, ResPower Inc - Toll-Free : 866-737-7697
-- www.respower.com -- 500+ GHz Supercomputer Starting At USD$0.50/GHz*Hour


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.